<script type="text/javascript">
	$(function() {
		$("#checkAll").checkall();
	});
</script>
<#include "/component/pagination.html" />
<script type="text/javascript" src="${basePath}/js/tds-role.js"></script>
<table border="0" cellspacing="0" cellpadding="0" class="table table-striped table-hover">
	<thead>
		<tr>
			<th width="3%" scope="col">
				<input id="checkAll" name="" type="checkbox" />
			</th>
			<th width="25%" scope="col"><@spring.message code='role.name'/></th>
			<th width="12%" scope="col"><@spring.message code='role.value'/></th>
			<th width="9%" scope="col"><@spring.message code='role.operation'/></th>
		</tr>
	</thead>
	<tbody>
		<#list pager.list as item>
		<tr <#if ((item_index+1) % 2 == 0) >class="oddrow"</#if>>
			<td class="c"><input name="id" type="checkbox" value="${item.id}" ></td>
	        <td>${item.name}</td>
	        <td>${item.value}</td>
	        <td>    		  	
				<a id="editresource" class="s_btnwork xm_zh_btn" href="javascript:void(0);"  
					onclick="role.editresource('${item.id}')"><@spring.message code='role.resource'/></a>			    
	    		<a id="edituser" class="s_btnwork xm_zh_btn" href="javascript:void(0);"  
					onclick="role.edituser('${item.id}')"><@spring.message code='role.user'/></a>
	       </tr>
		</#list>
	</tbody>
</table>
<@pagination/>

